﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Web;
using Castle.ActiveRecord;
using System.Web.UI;
using System.IO;
using SimplePMT.Data;
using SimplePMT.Components;
using NHibernate.Expression;

namespace SimplePMT.Control
{
    public partial class AdminSelectAccountControl : System.Web.UI.UserControl
    {
        public Member[] members;
        
        public bool AdminAccess = false;
        protected void Page_Load(object sender, EventArgs e)
        {
           
        }
        

        public override string ToString()
        {
            members = Member.FindAll(Order.Asc("LastName"));

            string result = "";
            StringWriter writer = new StringWriter();
            HtmlTextWriter htmlWriter = new HtmlTextWriter(writer);
            this.Render(htmlWriter);
            result = writer.ToString();
            return result;
        }      
    }
}